/*
 * @Descripttion:
 * @LastEditors: xzh
 * @LastEditTime: 2023-09-12 20:22:19
 */
import { tableTool_Inf, btnTypeEnum } from "@/components/dile-table/index.type";
import EquipManage_Constants from "../../power-equipManage";

/*
 * @Descripttion:模具基本信息权限常量
 * @LastEditors: xzh
 * @LastEditTime: 2023-09-06 21:56:48
 */
export default class MoldBaseInfoPower_Constants extends EquipManage_Constants {
  /**
   * @Author: xzh
   * @Descripttion: 模具类型工具栏
   * @Param:
   */
  static moldTypeTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.enable"),
      label: "table.btnArr.enable",
      code: "enable",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.disEnable"),
      label: "table.btnArr.disEnable",
      code: "disEnable",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 模具状态工具栏
   * @Param:
   */
  static moldStateTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.enable"),
      label: "table.btnArr.enable",
      code: "enable",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.disEnable"),
      label: "table.btnArr.disEnable",
      code: "disEnable",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 模具档案工具栏
   * @Param:
   */
  static moldArchivesTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.qrCode"),
      label: "table.btnArr.qrCode",
      code: "qrCode",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.moldManageArr.moldArchivesArr.btnArr.moldResume"),
      label: "page.moldManageArr.moldArchivesArr.btnArr.moldResume",
      code: "moldResume",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.moldManageArr.moldArchivesArr.btnArr.moldModulus"),
      label: "page.moldManageArr.moldArchivesArr.btnArr.moldModulus",
      code: "moldModulus",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.moldManageArr.moldArchivesArr.btnArr.relSpare"),
      label: "page.moldManageArr.moldArchivesArr.btnArr.relSpare",
      code: "relSpare",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.import"),
      label: "table.btnArr.import",
      code: "export",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.export"),
      label: "table.btnArr.export",
      code: "export",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];
}
